import request from '../utils/http'
// 条件获取动态列表
export function getTrendsList(query) {
	return request({
		method: "get",
		url: `/trends/list`,
		data: query

	})
}

// 获取动态详情
export function getTrendsDetail(query) {
	return request({
		method: "get",
		url: `/trends/detail`,
		data: query

	})
}

// 增加阅览量
export function addReads(data) {
	return request({
		method: "post",
		url: `/trends/readsAdd`,
		data: data

	})
}

// 发布或更新实验室动态
export function sendOrUpdateTrends(data) {
	return request({
		method: "post",
		url: `/trends/send`,
		data: data

	})
}


// 删除实验室动态

export function deleteTrends(data) {
	return request({
		method: "delete",
		url: `/trends/delete`,
		data: data

	})
}